package com.cxs.dto;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/*
 * @Author:cxs
 * @Date:2021/10/11  20:31
 * @Version 1.0
 * @Motto:放下杂念,只为迎接明天更好的自己
 * */
@Data
public class StudentDTO {

    private Long id;

    @NotBlank(message = "学生姓名岂能为空")
    private String name;

    @NotNull(message = "学生年龄岂能为空")
    private Integer age;

    @NotBlank(message = "学生性别岂能为空")
    private String gender;

    @NotBlank(message = "学生电话岂能为空")
    private String telephone;

    @NotBlank(message = "学生邮件岂能为空")
    private String email;

    @NotNull(message = "学生班级岂能为空")
    private Long classId;
}
